import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import tabOneCom from '@/components/tabOne/tabOneCom'
import tabTwoCom from '@/components/tabTwo/tabTwoCom'
import tabThreeCom from '@/components/tabThree/tabThreeCom'
import tabFourCom from '@/components/tabFour/tabFourCom'
import notFound from '@/components/notFound/notFound'
import setAppManage from '@/components/appManage/setAppManage'
Vue.use(Router)

export default new Router({
  routes: [
  { path: '/', redirect: '/index' },
  { path: '/index', redirect: '/index/tabOne' },
    {
      path: '/index',
      name: 'index',
      component: index,
      children:[{
      	path: 'tabOne',
      	name: 'tabOneCom',
      	component: tabOneCom,
      },{
      	path: 'tabTwo',
      	name: 'tabTwoCom',
      	component: tabTwoCom,
      },{
      	path: 'tabThree',
      	name: 'tabThreeCom',
      	component: tabThreeCom,
      },{
      	path: 'tabFour',
      	name: 'tabFourCom',
      	component: tabFourCom,
      }]
    },
    {path:'/setAppManage',name:'setAppManage',component:setAppManage},
    { path: '*', redirect: '/notFound' },
    { path: '/notFound', name: 'notFound', component: notFound }
  ]
})
